﻿namespace Resharper.Abstractions.CodeDom.Comments
{
  using JetBrains.Annotations;
  using JetBrains.ReSharper.Psi.Tree;
  using Resharper.Abstractions.CodeDom.TreeNodes;

  /// <summary>Defines the <see cref="Comment"/> class.</summary>
  public class Comment : TreeNode
  {
    #region Constructors and Destructors

    /// <summary>Initializes a new instance of the <see cref="Comment"/> class.</summary>
    /// <param name="docCommentBlockOwnerNode">The doc comment block owner node.</param>
    public Comment([NotNull] IDocCommentBlockNode docCommentBlockOwnerNode) : base(docCommentBlockOwnerNode)
    {
    }

    #endregion

    #region Properties

    /// <summary>
    /// Gets the internal comment.
    /// </summary>
    public IDocCommentBlockNode InternalComment
    {
      get
      {
        return (IDocCommentBlockNode)this.InternalTreeNode;
      }
    }

    #endregion
  }
}